﻿using System.Web.Mvc;
using Castle.Windsor;
using FoodBank.Core.IoC;

namespace FoodBank.Web
{

    public class WindsorConfig
    {
        public static void Register(out IWindsorContainer container)
        {
            container = WindsorContainerFactory.Container(WindsorConfigurator.Install);

            ControllerBuilder.Current.SetControllerFactory(new WindsorControllerFactory(container.Kernel));
        }
    }
}